package club.xcgame520.picturepicker.bean;

import java.io.Serializable;

/**
 * 本地媒体文件
 * Created by dee on 2015/8/5.
 */
public class Picture implements Serializable {

    private String path;

    private String name;

    private long dataTime;

    public Picture() {
    }

    public Picture(String path, String name, long dataTime) {
        this.path = path;
        this.name = name;
        this.dataTime = dataTime;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getDataTime() {
        return dataTime;
    }

    public void setDataTime(long dataTime) {
        this.dataTime = dataTime;
    }

    @Override
    public String toString() {
        return "Picture{" +
                "path='" + path + '\'' +
                ", name='" + name + '\'' +
                ", dataTime=" + dataTime +
                '}';
    }

    @Override
    public boolean equals(Object obj) {
        if (toString().equals(obj.toString())) {
            return true;
        }
        return false;
    }
}
